package com.benyanyi.loglib

import java.io.File

/**
 * @author kth
 * @date 2022/7/27 11:16 上午
 * @user yanyi
 * @overview
 */
fun LogConfig.init() {
    Jlog.init(this)
}

fun Any?.v() {
    Jlog.v(this)
}

fun v() {
    Jlog.v()
}

fun Any?.d() {
    Jlog.d(this)
}

fun d() {
    Jlog.d()
}

fun Any?.w() {
    Jlog.w(this)
}

fun w() {
    Jlog.w()
}

fun Any?.e() {
    Jlog.e(this)
}

fun e() {
    Jlog.e()
}

fun Any?.a() {
    Jlog.a(this)
}

fun a() {
    Jlog.a()
}

fun Any?.i() {
    Jlog.i(this)
}

fun i() {
    Jlog.i()
}

fun Any.json() {
    Jlog.json(this)
}

fun Any.xml() {
    Jlog.xml(this)
}

fun File.file() {
    Jlog.file(this, this.name)
}

fun Any.debug() {
    Jlog.debug(this)
}

fun Throwable.writeFile() {
    Jlog.errorWriteFile(this)
}
